package com.uaroadshow.finale.dao;

import java.util.List;

import com.demo2do.core.persistence.annotation.Dao;
import com.demo2do.core.persistence.annotation.Query;
import com.demo2do.core.persistence.annotation.Variable;
import com.uaroadshow.entity.user.User;
import com.uaroadshow.entity.user.UserCourse;

/**
 *
 * @author Ark
 *
 */
@Dao("hibernate")
public interface UserCourseDao {

    /**
     * @param user
     * @return
     */
    @Query("FROM UserCourse WHERE disabled = false AND user = :user")
    public List<UserCourse> list(@Variable("user") User user);
    
}
